<extend name='Public:layout' />
<block name='main-content'>	
<div class=" admin-content">
	
		<div class="daohang">
			<ul>
				<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs"> 首页 </li>
				<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">帮助中心<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>
				<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">奖金管理<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>
				<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">产品管理<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>
				
				
			</ul>

       

	
</div>

<div class="admin-biaogelist">
	
    <div class="listbiaoti am-cf">
      <ul class="am-icon-users"> 会员管理</ul>
      
      <dl class="am-icon-home" style="float: right;">当前位置： 首页 > <a href="__CONTROLLER__/index/">用户列表</a></dl>
      
      <dl>
        <a type="button" href="__CONTROLLER__/add/" class="am-btn am-btn-danger am-round am-btn-xs am-icon-plus" > 手动添加用户</a>
      </dl>
          <div class="am-fl tpl-header-search" style="margin-top:10px;margin-left: 45% ">
                    <form class="tpl-header-search-form" >
                      <input class="tpl-header-search-box" type="text" name="username" placeholder="搜索会员名称">
                        <button type="submit"  class="tpl-header-search-btn am-icon-search"></button>
                       
                    </form>
                </div>
      <!--这里打开的是新页面--> 
    </div>
    <form class="am-form am-g">
          <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
            <thead>
              <tr class="am-success">
                <th class="table-check"><input type="checkbox" /></th>

                <th class="table-id">ID</th>
                <th class="table-title">会员名称</th>
                <th class="table-title">昵称</th>
                <th class="table-type">用户邮箱</th>
                <th class="table-type">手机号</th>
                <th class="table-author am-hide-sm-only">用户头像</th>
                <th class="table-author am-hide-sm-only">用户类别</th>
                <th width="130px" class="table-set">操作</th>
              </tr>
            </thead>
            <assign name="num" item='0'/>
             <foreach name="users" item="user">
            <tbody>
              <tr>
                <td><input type="checkbox" /></td>
                <td>{$user['id']}</td>
                <td>{$user['username']}</td>
                <td>{$user['nickname']}</td>
                <td>{$user['email']}</td>
                <td>{$user['phone']}</td>
                <td class="am-hide-sm-only"><img src="__PUBLIC__/Upload/{$user['profile']}" style="width:40px;height:40px;"></td>
                <td class="am-hide-sm-only">{$user['auth']==1?管理员:普通用户}</td>
                <td>	
                	<div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                      <a href="__CONTROLLER__/mod/id/{$user.id}" class="am-btn am-btn-default am-btn-xs am-text-success am-round" title="修改订单"><span class="am-icon-pencil-square-o"></span></a>
                      <a href="__CONTROLLER__/del/id/{$user.id}" class="am-btn am-btn-default am-btn-xs am-text-danger am-round" onclick="return confirm('你确定要删除吗？');" title="删除"><span class="am-icon-trash-o" ></span></a>
                    </div>
                  </div>
                </td>
              </tr>
            </tbody>
          </foreach>
          </table>
                 <div class="am-btn-group am-btn-group-xs" style="margin-left: 86%" >
                      {$page}
                 </div>
          
          
        </form>




</div>

</div>




</div>





</block>